﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace VWise_DAO
{
  public class CVWise_DAO_EventArgs : EventArgs
  {
    public const int VWISE_DHL_NULL = 0;
    public const int VWISE_DHL_PERSONAL = 1;
    public const int VWISE_DHL_VEHICLE = 2;

    public const int W_MARK_FAIL = -1;
    public const int W_MARK_INGRESO = 1;
    public const int W_MARK_SALIDA = 2;
    public const int W_MARK_EXCEPCIONAL_INGRESO = 3;
    public const int W_MARK_EXCEPCIONAL_SALIDA = 4;

    public CVWise_DAO_EventArgs()
    {
      iTypeEvent = VWISE_DHL_NULL;
    }

    public CVWise_DAO_EventArgs(CPersonal pCPersonalObj)
    {
      pPersonal = pCPersonalObj;
      iTypeEvent = VWISE_DHL_PERSONAL;
    }

    public CVWise_DAO_EventArgs(CVehicle pCVehicleObj)
    {
      pVehicle = pCVehicleObj;
      iTypeEvent = VWISE_DHL_VEHICLE;
    }

    public CPersonal pPersonal = null;
    public CVehicle pVehicle = null;
    public int iTypeEvent;
    public int iTypeMark;
    public DateTime dtInOutMark;

  }
}
